﻿package Message.Public
{
    import Engine.RMI.*;
    import Framework.Serialize.*;

    public class EPriceUnit extends Object
    {
        public var __value:int;
        public static const _EPriceUnitBegin:int = 0;
        public static const _EPriceUnitCoin:int = 1;
        public static const _EPriceUnitCoinBind:int = 2;
        public static const _EPriceUnitGold:int = 3;
        public static const _EPriceUnitGoldBind:int = 4;
        public static const _EPriceUnitVitalEnergy:int = 5;
        public static const _EPriceUnitFightEnergy:int = 6;
        public static const _EPriceUnitRunicPower:int = 7;
        public static const _EPriceUnitHonor:int = 8;
        public static const _EPriceUnitArena:int = 9;
        public static const _EPriceUnitSkillPoint:int = 10;
        public static const _EPriceUnitExploit:int = 11;
        public static const _EPriceUnitAchieve:int = 12;
        public static const _EPriceUnit50GoldPoint:int = 13;
        public static const _EPriceUnit70GoldPoint:int = 14;
        public static const _EPriceUnit90GoldPoint:int = 15;
        public static const _EPriceUnitArenaBronze:int = 51;
        public static const _EPriceUnitArenaSilver:int = 52;
        public static const _EPriceUnitArenaGold:int = 53;
        public static const _EPriceUnitArenaJewel:int = 54;
        public static const _EPriceUnitArenaSJewel:int = 55;
        public static const _EPriceUnitArena2Bronze:int = 61;
        public static const _EPriceUnitArena2Silver:int = 62;
        public static const _EPriceUnitArena2Gold:int = 63;
        public static const _EPriceUnitArena2Jewel:int = 64;
        public static const _EPriceUnitArena2SJewel:int = 65;
        public static const _EPriceUnitEquipPoint:int = 100;
        public static const _EPriceUnitGuildContribution:int = 101;
        public static const _EPriceUnitIceTowerPiece:int = 102;
        public static const _EPriceUnitStoneTowerPiece:int = 103;
        public static const _EPriceUnitArrowTowerPiece:int = 104;
        public static const _EPriceUnitMagicTowerPiece:int = 105;

        public function EPriceUnit(param1:int)
        {
            this.__value = param1;
            return;
        }// end function

        public function value() : int
        {
            return this.__value;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeByte(this.__value);
            return;
        }// end function

        public static function convert(param1:int) : EPriceUnit
        {
            return new EPriceUnit(param1);
        }// end function

        public static function __read(param1:SerializeStream) : EPriceUnit
        {
            var _loc_2:* = param1.readByte();
            if (_loc_2 < 0 || _loc_2 >= 106)
            {
                throw new MarshalException();
            }
            return EPriceUnit.convert(_loc_2);
        }// end function

    }
}
